WPDesk\ShopMagicCart\Interceptor\CartInterceptor S

Total Complexity 42
Dependencies 11
Dependents 1
Total lines 226
Lines of code 147
Logical lines of code 92
Comment lines 43
Methods 14
Properties 4

Methods 14

Method Rating Maintainability Complexity Lines of code
should_save_cart()
A
51 10 26
sync_cart_with_order()
S
53 6 21
save_cart()
S
54 5 19
trigger_update_on_cart_and_checkout_pages()
S
66 4 9
retrieve_synced_cart()
S
60 3 14
get_tracking_key()
S
65 3 9
hooks()
S
58 1 15
set_changed_into_cookie()
S
73 2 5
set_changed_from_cookie()
S
71 2 6
store_tracking_key()
S
71 2 6
__construct()
S
74 1 5
empty_cart()
S
75 1 4
separate_cart_from_session()
S
73 1 5
set_changed()
S
81 1 3